package com.liu.text;

import com.liu.mapper.UserMapper;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class springText {
    @Test
    public void text(){
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("Application-Config.xml");
        UserMapper userMapper = applicationContext.getBean("UserMapperImpl", UserMapper.class);
        System.out.println(userMapper.selectUser().get(0));
    }
}
